package com.ybliang.plat.common.rpc.consumer.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.Map;

@ConfigurationProperties(prefix = RpcClientProperties.PREFIX)
public class RpcClientProperties {

    static final String PREFIX = "plat.rpc";

    private Map<String, RpcClient> clients;

    public Map<String, RpcClient> getClients() {
        return clients;
    }

    public void setClients(Map<String, RpcClient> clients) {
        this.clients = clients;
    }

    public static class RpcClient {

        private String basePackages;
        private String ip;
        private Integer port;

        public String getBasePackages() {
            return basePackages;
        }

        public void setBasePackages(String basePackages) {
            this.basePackages = basePackages;
        }

        public String getIp() {
            return ip;
        }

        public void setIp(String ip) {
            this.ip = ip;
        }

        public Integer getPort() {
            return port;
        }

        public void setPort(Integer port) {
            this.port = port;
        }
    }

}
